﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Site.master" AutoEventWireup="true" CodeFile="ProfessorInserir.aspx.cs" Inherits="ProfessorInserir" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" Runat="Server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" Runat="Server">
 <script type="text/javascript" src="Scripts/jquery-1.7.1.js"></script>  
 <script type="text/javascript" src="Scripts/jquery.maskedinput-1.3.js"></script>  
 <script type="text/javascript" src="Scripts/Mascaras.js">
    
 </script>  
     
         
    <h2>
    Cadastro de professor:</h2>
<p>
    <asp:LinkButton ID="lnkAlterar" runat="server" onclick="lnkAlterar_Click">Alterar Dados do Professor</asp:LinkButton>
    <br /><br />Matrícula:
    <asp:TextBox ID="TextBoxMat" runat="server" Width="172px" ReadOnly="True"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    </p>
<p>
    Nome:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
    <asp:TextBox ID="TextBoxNome" runat="server" Width="298px" ReadOnly="True"></asp:TextBox>
</p>
<p>
    Sexo:
    <asp:RadioButtonList ID="RadioButtonList1" runat="server" 
        RepeatDirection="Horizontal" Enabled="False">
        <asp:ListItem Selected="True">Masculino</asp:ListItem>
        <asp:ListItem>Feminino</asp:ListItem>
    </asp:RadioButtonList>
</p>
<p>
    Endereço:
    <asp:TextBox ID="TextBoxEnd" runat="server" Width="297px" ReadOnly="True"></asp:TextBox>
    <asp:Label ID="lblID" runat="server" Visible="False"></asp:Label>
    </p>
    <p>
        Telefone:&nbsp;<asp:TextBox ID="TextBoxFone" runat="server" Width="154px" ReadOnly="True" CssClass="mask-fone"></asp:TextBox>
    </p>
    <p>
        RG:&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:TextBox ID="TextBoxRG" runat="server" ReadOnly="True" CssClass="mask-rg"></asp:TextBox>
&nbsp;&nbsp;&nbsp;&nbsp; CPF:
        <asp:TextBox ID="TextBoxCPF" runat="server" Width="128px" ReadOnly="True" CssClass="mask-cpf"></asp:TextBox>
    </p>
    <p>
        Nascimento:
        <asp:TextBox ID="TextBoxNasc" runat="server" ReadOnly="True" CssClass="mask-data"></asp:TextBox>
    </p>
    <p>
        E-mail:
        <asp:TextBox ID="TextBoxEmail" runat="server" Width="238px" ReadOnly="True"></asp:TextBox>
    </p>
    <p>
        <asp:LinkButton ID="lnkAlterarSenha" runat="server" 
            onclick="lnkAlterarSenha_Click" Visible="False">Alterar Senha do Professor</asp:LinkButton>
        <br /> 
        <asp:Label ID="lblSenha" runat="server" Text="Senha para acessar o Sistema: " 
            Visible="False"></asp:Label>
&nbsp;<asp:TextBox ID="TextBoxSenha" runat="server" TextMode="Password" Visible="False"></asp:TextBox>
    </p><br />
    <hr /><br /> 
&nbsp;<asp:Label ID="lblDisciplinas" runat="server" 
        Text="Disciplinas que o professor leciona na instituição:"></asp:Label>
    <br /> 
        <asp:CheckBoxList ID="CheckBoxList1" runat="server" 
        DataSourceID="ObjectDataSource1" DataTextField="Nome" 
        DataValueField="Nome" Enabled="False" 
        ondatabound="CheckBoxList1_DataBound">
        </asp:CheckBoxList>
        <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
        SelectMethod="list" TypeName="Negocio.DisciplinaNegocio">
            <SelectParameters>
                <asp:Parameter Name="nome" Type="String" />
            </SelectParameters>
        </asp:ObjectDataSource>
        
    <br /><br />
    <p>
    &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="ButtonSalvar" runat="server" onclick="ButtonSalvar_Click" 
            Text="Salvar" Visible="False" />
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
        <asp:Button ID="ButtonCancelar" runat="server" Text="Cancelar" 
            onclick="ButtonCancelar_Click" />
    </p>
</asp:Content>

